<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="项目的ID" label-width="100px">
        <el-input
            v-model="textarea2"
            placeholder="请输入项目ID"
            clearable
            @keyup.enter="handleQuery"
        />
      </el-form-item>
      <el-form-item label="调查人随机ID" label-width="100px">
      <el-input
      v-model="textarea1"
      style="width: 240px"
      autosize
      type="textarea"
      placeholder="请输入调查人随机ID"
      />
      </el-form-item>
      <el-form-item label="调查状态"  label-width="112px">
        <el-select v-model="value" placeholder="选择调查状态" style="width: 240px">
          <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="UploadFilled" @click="handleQuery">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { checkRole } from "@/utils/permission.js";
import { listSurveyLogByid } from "@/api/survey/surveyupdate.js";
const textarea1 = ref('')
const textarea2 = ref('')
const showSearch = ref(true);
const value = ref('')
const options = [
  {
    value: '审核成功',
    label: '审核成功',
  },
  {
    value: '审核失败',
    label: '审核失败',
  }
]

/** 提交按钮操作 */
function handleQuery() {
  // Call the API function with textarea1 value and statusValue
  listSurveyLogByid(textarea1.value, value.value,textarea2.value);
}
</script>


<style scoped lang="scss">

</style>